package com.message.rpc;

import com.message.Message;
import com.message.constant.MessageType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author dailinyu
 * @createTime 2022/10/7 16:52
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponseMessage extends Message {

    /**
     * 消息id
     */
    private String messageId;

    /**
     * 返回值
     */
    private Object returnValue;

    /**
     * 异常值
     */
    private Exception exceptionValue;

    @Override
    public int getMessageType() {
        return MessageType.RPC_RESPONSE_MESSAGE;
    }
}
